package cn.xxliang.platapp.pojo.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;

@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel("应用信息Dto")
public class AppSystemDto {
    @ApiModelProperty(value = "app的id")
    private String appSystemId;

    @ApiModelProperty(value = "应用名称",required = true)
    @NotNull(message = "应用名称不能为空")
    private String appName;

    @ApiModelProperty(value = "应用密钥",required = true)
    @NotNull(message = "应用密钥不能为空")
    private String secret;

    @ApiModelProperty(value = "省分")
    private String northSystemId;

    @ApiModelProperty(value = "应用状态 0-生效 1-失效",required = true)
    @NotNull(message = "应用状态不能为空")
    @Size(min = 1, max = 1, message = "应用状态必须是0或1")
    @Pattern(regexp = "[01]", message = "应用状态必须是0或1")
    private String status;

    @ApiModelProperty(value = "告警信息推送地址")
    private String alarmPushUrl;

    @ApiModelProperty(value = "回调地址")
    private String callbackUrl;

    @ApiModelProperty(value = "订购信息推送地址")
    private String orderPushUrl;

    @ApiModelProperty(value = "余量信息推送地址")
    private Integer residuePushUrl;

    @ApiModelProperty(value = "系统 1-安卓 2-苹果 3-双系统")
    private Integer systemType;

    @ApiModelProperty(value = "安卓包ID")
    private String packageId;

    @ApiModelProperty(value = "ios包ID")
    private String iosPackageId;

    @ApiModelProperty(value = "图标ID")
    private String imageId;

    @ApiModelProperty(value = "删除标识 0-正常 1-删除")
    private Integer deleteFlag;

    @ApiModelProperty(value = "创建时间")
    private String createTime;

    @ApiModelProperty(value = "更新时间")
    private String updateTime;
}


